package com.example.datacollection.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DataDemography {

    private int populationSum;
    private int populationMale;
    private int populationFemale;
    private int populationTown;
    private int populationRural;
    private String statisticalYears;

    public void set(int populationSum, int populationMale, int populationFemale, int populationTown, int populationRural, String statisticalYears) {
        this.setPopulationSum(populationSum);
        this.setPopulationMale(populationMale);
        this.setPopulationFemale(populationFemale);
        this.setPopulationTown(populationTown);
        this.setPopulationRural(populationRural);
        this.setStatisticalYears(statisticalYears);
    }

}
